package com.xxxx.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.page.BasePage;
import com.xxxx.server.page.EmployeePage;
import com.xxxx.server.pojo.Admin;
import com.xxxx.server.pojo.Employee;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhoubin
 * @since 2020-08-17
 */
public interface IEmployeeService extends IService<Employee> {


    Object findList(IPage<Employee> page);


    /**
     *  根据员工姓名获取员工对象
     * @param name
     * @return
     */
    Employee getEmployeeByName(String name);


    /**
     * 多条件查询员工对象
     * @param basePage
     * @return
     */
    Map<String, Object> queryByParamsForTable(EmployeePage basePage);

    /**
     *  添加员工信息
     * @param employee
     * @return
     */
    Employee saveEmployee(Employee employee);

    List<Employee> findAllEmployee();
}
